#!/bin/bash

abcFilePath="/mnt/data/m30052569/dulicang/ohcompiler-daily/pgo/out/app"

for abcFile in `ls ${abcFilePath} | grep .abc`
do
    (   
        testName=${abcFile%%.abc*}
        cmdStr="ark_js_vm --icu-data-path=/mnt/data/m30052569/dulicang/verify/third_party/icu/ohos_icu4j/data --stub-file=/mnt/data/m30052569/dulicang/out/x64.release/gen/arkcompiler/ets_runtime/stub.an --compiler-enable-litecg=true --compiler-enable-jit=true --compiler-enable-jit-pgo=true --enable-pgo-profiler=true --log-debug=jit --entry-point=${testName} ${abcFilePath}/${abcFile}"
        echo $cmdStr
        exec $cmdStr 1> ${testName}.log
        echo $?
    )   
done